/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ac.za.cput.designpatterns.creational.singleton.model;

/**
 *
 * @author user
 */
public class SingletonExample {
    
    private static SingletonExample singletonExample = null;
    
    private SingletonExample(){
    }
    
    public static SingletonExample getInstance(){
        
        if(singletonExample == null) {
            singletonExample = new SingletonExample();
        }
        return singletonExample;
    }
    public String sayHello(){
       // System.out.println("Hello");
        String  hs = "Hello";
        return (String) hs;
    }
    
}
